package com.tsingtree.modular.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tsingtree.modular.entity.NanSellAnnounceAdvert;
import com.tsingtree.modular.model.params.NanSellAnnounceAdvertParam;

import java.util.List;

/**
 * <p>
 * 社区帖子广告 服务类
 * </p>
 *
 * @author jagger
 * @since 2025-10-17
 */
public interface NanSellAnnounceAdvertService extends IService<NanSellAnnounceAdvert> {

    /**
     * 根据帖子ID查询广告列表
     *
     * @param sellAnnounceId 帖子ID
     * @return 广告列表
     */
    List<NanSellAnnounceAdvert> findBySellAnnounceId(Integer sellAnnounceId);

    /**
     * 新增广告
     *
     * @param param 广告参数
     */
    void add(NanSellAnnounceAdvertParam param);

    /**
     * 删除广告
     *
     * @param param 广告参数
     */
    void delete(NanSellAnnounceAdvertParam param);

    /**
     * 根据ID查询
     *
     * @param param 参数
     * @return 广告实体
     */
    NanSellAnnounceAdvert findById(NanSellAnnounceAdvertParam param);

}
